package dymnd.ui;

import java.awt.*;

import javax.swing.*;
import java.awt.image.*;

public class StyledMenuBar extends JMenuBar{
	
	BufferedImage bgImage = null;
	public StyledMenuBar(BufferedImage backgroundImage)	{
		bgImage = backgroundImage;
	}
	
	/*public void paintComponent(Graphics arg0)	{
		Graphics2D g = (Graphics2D) arg0;
		for(int i = 0; i*bgImage.getWidth() < getWidth(); i++)	{
			g.drawImage(bgImage, i*bgImage.getWidth(), 0, null);
			System.out.println("Going going going! " + i);
		}
				
	}*/
	
	public void update(Graphics g)	{
		paintAll(g);
	}
	
	
}
